<template>
	<view>
		<view class="">弹出框样式</view>
		<view class="box" :style="{height: state ? '300rpx': '0rpx'}">
			<button size="mini" @click="onclick">关闭</button>
		</view>
	</view>
</template>

<script>
	export default {
		name:"mypop",
		data() {
			return {
				// state: false
			};
		},
		props:{
			state: {
				type:Boolean,
				default:false
			}
		},
		methods: {
			onclick() {
				this.$emit("popClose", false);
			}
		}
	}
</script>

<style>
.box {
	width: 300rpx;
	height: 300rpx;
	background: pink;
}
</style>